import request from '@/utils/request'

// 查询霍兰德职业兴趣测试人格列表
export function listPersonality(query) {
  return request({
    url: '/gk/personality/list',
    method: 'get',
    params: query
  })
}

// 查询霍兰德职业兴趣测试人格详细
export function getPersonality(personalityId) {
  return request({
    url: '/gk/personality/' + personalityId,
    method: 'get'
  })
}

// 新增霍兰德职业兴趣测试人格
export function addPersonality(data) {
  return request({
    url: '/gk/personality',
    method: 'post',
    data: data
  })
}

// 修改霍兰德职业兴趣测试人格
export function updatePersonality(data) {
  return request({
    url: '/gk/personality',
    method: 'put',
    data: data
  })
}

// 删除霍兰德职业兴趣测试人格
export function delPersonality(personalityId) {
  return request({
    url: '/gk/personality/' + personalityId,
    method: 'delete'
  })
}
